package File;

import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ling
 * Date: 2022-08-13
 * Time: 0:48
 */
public class Demo10 {
    public static void main(String[] args) {
        try(Writer writer=new FileWriter("test2.txt")){
            writer.write("hello world");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
